BatchCreateRoomMembershipResponse.fromJson constructor

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

Implementation

factory BatchCreateRoomMembershipResponse.fromJson(
    Map<String, dynamic> json) {
  return BatchCreateRoomMembershipResponse(
    errors: (json['Errors'] as List?)
        ?.whereNotNull()
        .map((e) => MemberError.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}