toJson method
Produces a Map that can be serialized to JSON.
Implementation
Map<String, dynamic> toJson() {
final json = <String, String>{};
if (name != null) {
json['app_name'] = name!;
}
if (version != null) {
json['app_version'] = version!;
}
if (identifier != null) {
json['app_identifier'] = identifier!;
}
if (build != null) {
json['app_build'] = build!;
}
if (buildType != null) {
json['build_type'] = buildType!;
}
if (startTime != null) {
json['app_start_time'] = startTime!.toIso8601String();
}
if (deviceAppHash != null) {
json['device_app_hash'] = deviceAppHash!;
}
return json;
}