fromJson static method

DBRP fromJson(
  1. dynamic value
)

Returns a new DBRP instance and imports

Implementation

// ignore: prefer_constructors_over_static_methods
static DBRP fromJson(dynamic value) {
  final json = value.cast<String, dynamic>();
  return DBRP(
    id: mapValueOfType<String>(json, r'id'),
    orgID: mapValueOfType<String>(json, r'orgID'),
    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'),
    links: json[r'links'] == null ? null : Links.fromJson(json[r'links']),
  );
}