CustomUpdateVersion.fromJson constructor

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

Implementation

factory CustomUpdateVersion.fromJson(Map<String, dynamic> json) {
  return CustomUpdateVersion(
    newVersion:
        json['newVersion'] as String? ?? json['new_version'] as String?,
    redirectLink:
        json['redirectLink'] as String? ?? json['redirect_link'] as String?,
  );
}