GroupGetResponseParam.fromJson constructor

GroupGetResponseParam.fromJson(
  1. JsonMap rawData
)

Implementation

factory GroupGetResponseParam.fromJson(JsonMap rawData) {
  final rawGroup = rawData[GroupGetArgument.group.argName];
  final group = (rawGroup is List ? rawGroup : [])
      .whereType<JsonMap>()
      .map((e) => GroupDesc.fromJson(e))
      .toList();
  return GroupGetResponseParam(group: group);
}