fromJson static method

AndroidData? fromJson(
  1. Map? json
)

Implementation

static AndroidData? fromJson(Map? json) {
  if (json == null) return null;
  return AndroidData(
    isFavorite: JsonHelpers.decode<bool>(json['isFavorite']),
    customRingtone: JsonHelpers.decode<String>(json['customRingtone']),
    sendToVoicemail: JsonHelpers.decode<bool>(json['sendToVoicemail']),
    lastUpdatedTimestamp: json['lastUpdatedTimestamp'] as int?,
    identifiers: AndroidIdentifiers.fromJson(json['identifiers'] as Map?),
    debugData: JsonHelpers.decode<Map>(json['debugData']),
  );
}