GetLicenseRequest.fromJson constructor

GetLicenseRequest.fromJson(
  1. Object? j
)

Implementation

factory GetLicenseRequest.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return GetLicenseRequest(
    license: switch (json['license']) {
      null => '',
      Object $1 => decodeString($1),
    },
    project: switch (json['project']) {
      null => '',
      Object $1 => decodeString($1),
    },
  );
}