CreateItemRequest.fromJson constructor

CreateItemRequest.fromJson(
  1. Map json_
)

Implementation

CreateItemRequest.fromJson(core.Map json_)
    : this(
        item: json_.containsKey('item')
            ? Item.fromJson(
                json_['item'] as core.Map<core.String, core.dynamic>)
            : null,
        location: json_.containsKey('location')
            ? Location.fromJson(
                json_['location'] as core.Map<core.String, core.dynamic>)
            : null,
      );