VersionRestoreParams.fromJson constructor

VersionRestoreParams.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory VersionRestoreParams.fromJson(Map<String, Object?> json) {
  return VersionRestoreParams(
    versionNumber: (json[r'versionNumber'] as num?)?.toInt() ?? 0,
    message: json[r'message'] as String? ?? '',
    restoreTitle: json[r'restoreTitle'] as bool? ?? false,
  );
}