WorkGroup.fromJson constructor

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

Implementation

factory WorkGroup.fromJson(Map<String, dynamic> json) {
  return WorkGroup(
    name: json['Name'] as String,
    configuration: json['Configuration'] != null
        ? WorkGroupConfiguration.fromJson(
            json['Configuration'] as Map<String, dynamic>)
        : null,
    creationTime: timeStampFromJson(json['CreationTime']),
    description: json['Description'] as String?,
    state: (json['State'] as String?)?.toWorkGroupState(),
  );
}