fromMap static method

UpdateEntity fromMap(
  1. Map<String, dynamic> map
)

Implementation

static UpdateEntity fromMap(Map<String, dynamic> map) {
  return UpdateEntity(
    hasUpdate: map['hasUpdate'],
    isForce: map['isForce'],
    isIgnorable: map['isIgnorable'],
    versionCode: map['versionCode']?.toInt(),
    versionName: map['versionName'],
    updateContent: map['updateContent'],
    downloadUrl: map['downloadUrl'],
    apkSize: map['apkSize']?.toInt(),
    apkMd5: map['apkMd5'],
  );
}