ServiceItem.fromJson constructor

ServiceItem.fromJson(
  1. Map json_
)

Implementation

ServiceItem.fromJson(core.Map json_)
    : this(
        freeFormServiceItem: json_.containsKey('freeFormServiceItem')
            ? FreeFormServiceItem.fromJson(json_['freeFormServiceItem']
                as core.Map<core.String, core.dynamic>)
            : null,
        price: json_.containsKey('price')
            ? Money.fromJson(
                json_['price'] as core.Map<core.String, core.dynamic>)
            : null,
        structuredServiceItem: json_.containsKey('structuredServiceItem')
            ? StructuredServiceItem.fromJson(json_['structuredServiceItem']
                as core.Map<core.String, core.dynamic>)
            : null,
      );