Request.fromJson constructor

Request.fromJson(
  1. Object? json
)

Implementation

factory Request.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return Request(
    body: map['body'] == null ? null : (map['body'] as String),
    headers: map['headers'] == null
        ? null
        : (map['headers'] as List<Object?>)
            .map((el) => InvoiceSettingCustomField.fromJson(el))
            .toList(),
  );
}