LifecycleEvent.fromJson constructor
LifecycleEvent.fromJson(
- Map<String, dynamic> json
)
Implementation
factory LifecycleEvent.fromJson(Map<String, dynamic> json) {
return LifecycleEvent(
diagnostics: json['diagnostics'] != null
? Diagnostics.fromJson(json['diagnostics'] as Map<String, dynamic>)
: null,
endTime: timeStampFromJson(json['endTime']),
lifecycleEventName: json['lifecycleEventName'] as String?,
startTime: timeStampFromJson(json['startTime']),
status: (json['status'] as String?)?.toLifecycleEventStatus(),
);
}