fromJson static method

ReturnCode? fromJson(
  1. Object? value
)

null, wenn der Eintrag nicht lesbar ist.

Implementation

static ReturnCode? fromJson(Object? value) {
  if (value is! Map || value['gtin'] is! String || value['depositTypeId'] is! String) return null;
  return ReturnCode(gtin: value['gtin'] as String, depositTypeId: value['depositTypeId'] as String);
}