AccountThresholdsUpdatedEffectResponse.fromJson constructor

AccountThresholdsUpdatedEffectResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory AccountThresholdsUpdatedEffectResponse.fromJson(
        Map<String, dynamic> json) =>
    new AccountThresholdsUpdatedEffectResponse(
        convertInt(json['low_threshold']),
        convertInt(json['med_threshold']),
        convertInt(json['high_threshold']))
      ..id = json['id'] as String
      ..account = json['account'] == null ? null : json['account']
      ..accountMuxed =
          json['account_muxed'] == null ? null : json['account_muxed']
      ..accountMuxedId = json['account_muxed_id'] == null
          ? null
          : json['account_muxed_id'] as String
      ..type = json['type'] as String
      ..createdAt = json['created_at'] as String
      ..pagingToken = json['paging_token'] as String
      ..links = json['_links'] == null
          ? null
          : new EffectResponseLinks.fromJson(
              json['_links'] as Map<String, dynamic>);