CloudComponentStatus.fromJson constructor

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

Implementation

factory CloudComponentStatus.fromJson(Map<String, dynamic> json) {
  return CloudComponentStatus(
    componentState:
        (json['componentState'] as String?)?.toCloudComponentState(),
    errors: (json['errors'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
    message: json['message'] as String?,
  );
}