Skip to content

ImageMedia

An image captured by the app.

Used for the MediaSamplingPackage.IMAGE measure.

Inheritance
Annotations

Constructors

ImageMedia.fromJson

ImageMedia.fromJson(
  1. Map<String, dynamic> json
)

ImageMedia

ImageMedia({
  1. required String filename,
  2. DateTime? startRecordingTime,
  3. DateTime? endRecordingTime,
})

Properties

fromJsonFunction

Function get fromJsonFunction
override

The function which can convert a JSON string to an object of this type.

jsonType

String get jsonType
override

Return the __type to be used for JSON serialization of this class. Default is runtimeType. Only specify this if you need another type.

Methods

toJson

Map<String, dynamic> toJson()
override

Return a JSON encoding of this object.