BmBondStateResponse.fromMap constructor

BmBondStateResponse.fromMap(
  1. Map json
)

Implementation

factory BmBondStateResponse.fromMap(Map<dynamic, dynamic> json) {
  return BmBondStateResponse(
    remoteId: DeviceIdentifier(json['remote_id']),
    bondState: BmBondStateEnum.values[json['bond_state']],
    prevState: json['prev_state'] != null ? BmBondStateEnum.values[json['prev_state']] : null,
  );
}