Room.fromJson constructor

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

Implementation

factory Room.fromJson(Map<String, dynamic> json) {
  return Room(
    accountId: json['AccountId'] as String?,
    createdBy: json['CreatedBy'] as String?,
    createdTimestamp: timeStampFromJson(json['CreatedTimestamp']),
    name: json['Name'] as String?,
    roomId: json['RoomId'] as String?,
    updatedTimestamp: timeStampFromJson(json['UpdatedTimestamp']),
  );
}