fromMap static method

CustomSchemeResponse? fromMap(
  1. Map<String, dynamic>? map
)

Gets a possible CustomSchemeResponse instance from a Map value.

Implementation

static CustomSchemeResponse? fromMap(Map<String, dynamic>? map) {
  if (map == null) {
    return null;
  }
  final instance = CustomSchemeResponse(
    contentType: map['contentType'],
    data: map['data'],
  );
  instance.contentEncoding = map['contentEncoding'];
  return instance;
}