SdkVersion.fromJson constructor

  1. @Deprecated('Use setApplicationVersion instead.')
SdkVersion.fromJson(
  1. Map<String, dynamic> json
)

Deserializes a JSON-compatible map to create an instance.

Used internally, not intended for direct use by consumers. The expected map structure may change without notice.

Implementation

@Deprecated('Use setApplicationVersion instead.')
factory SdkVersion.fromJson(final Map<String, dynamic> json) {
  return SdkVersion(
    minor: json['minor'],
    major: json['major'],
    week: json['week'],
    year: json['year'],
    revision: json['revision'],
  );
}