fromJson static method

ODataListResponseOfJob fromJson(
  1. dynamic value
)

Returns a new ODataListResponseOfJob instance and imports its values from value if it's a Map, null otherwise.

Implementation

// ignore: prefer_constructors_over_static_methods
static ODataListResponseOfJob fromJson(dynamic value) {
  if (value is Map) {
    final json = value.cast<String, dynamic>();
    return ODataListResponseOfJob(
      atOdataPeriodNextLink: mapValueOfType<String>(json, r'@odata.nextLink'),
      atOdataPeriodCount: mapValueOfType<int>(json, r'@odata.count'),
      atOdataPeriodContext: mapValueOfType<String>(json, r'@odata.context'),
      value: Job.listFromJson(json[r'value']),
    );
  }
  return null;
}