ConfigurationRecorderStatus.fromJson constructor

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

Implementation

factory ConfigurationRecorderStatus.fromJson(Map<String, dynamic> json) {
  return ConfigurationRecorderStatus(
    lastErrorCode: json['lastErrorCode'] as String?,
    lastErrorMessage: json['lastErrorMessage'] as String?,
    lastStartTime: timeStampFromJson(json['lastStartTime']),
    lastStatus: (json['lastStatus'] as String?)?.toRecorderStatus(),
    lastStatusChangeTime: timeStampFromJson(json['lastStatusChangeTime']),
    lastStopTime: timeStampFromJson(json['lastStopTime']),
    name: json['name'] as String?,
    recording: json['recording'] as bool?,
  );
}