MBUserContractStatus.fromDictionary constructor

MBUserContractStatus.fromDictionary(
  1. Map<String, dynamic> dictionary
)

Implementation

factory MBUserContractStatus.fromDictionary(Map<String, dynamic> dictionary) {
  int id = dictionary['id'] is int ? dictionary['id'] as int : 0;
  bool accepted =
      dictionary['accepted'] is bool ? dictionary['accepted'] as bool : false;
  return MBUserContractStatus(
    id: id,
    accepted: accepted,
  );
}