fromJson static method

OnboardingRequest fromJson(
  1. dynamic value
)

Returns a new OnboardingRequest instance and imports

Implementation

// ignore: prefer_constructors_over_static_methods
static OnboardingRequest fromJson(dynamic value) {
  final json = value.cast<String, dynamic>();
  return OnboardingRequest(
    username: mapValueOfType<String>(json, r'username'),
    password: mapValueOfType<String>(json, r'password'),
    org: mapValueOfType<String>(json, r'org'),
    bucket: mapValueOfType<String>(json, r'bucket'),
    retentionPeriodSeconds:
        mapValueOfType<int>(json, r'retentionPeriodSeconds'),
    retentionPeriodHrs: mapValueOfType<int>(json, r'retentionPeriodHrs'),
    token: mapValueOfType<String>(json, r'token'),
  );
}