fromJson static method

DBRPCreate fromJson(
  1. dynamic value
)

Returns a new DBRPCreate instance and imports

Implementation

// ignore: prefer_constructors_over_static_methods
static DBRPCreate fromJson(dynamic value) {
  final json = value.cast<String, dynamic>();
  return DBRPCreate(
    orgID: mapValueOfType<String>(json, r'orgID'),
    org: mapValueOfType<String>(json, r'org'),
    bucketID: mapValueOfType<String>(json, r'bucketID'),
    database: mapValueOfType<String>(json, r'database'),
    retentionPolicy: mapValueOfType<String>(json, r'retention_policy'),
    default_: mapValueOfType<bool>(json, r'default'),
  );
}