ReservationAffinity.fromJson constructor

ReservationAffinity.fromJson(
  1. Map json_
)

Implementation

ReservationAffinity.fromJson(core.Map json_)
    : this(
        consumeReservationType: json_.containsKey('consumeReservationType')
            ? json_['consumeReservationType'] as core.String
            : null,
        key: json_.containsKey('key') ? json_['key'] as core.String : null,
        values: json_.containsKey('values')
            ? (json_['values'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );