factory GroupDefinition.fromJson(Map<String, dynamic> json) { return GroupDefinition( key: json['Key'] as String?, type: (json['Type'] as String?)?.toGroupDefinitionType(), ); }