toMap method

Map<String, Object?> toMap()

Implementation

Map<String, Object?> toMap() => <String, Object?>{
  'attributes': attributes
      .map(
        (attribute) => <String, Object?>{
          'key': attribute.key,
          'value': attribute.value,
        },
      )
      .toList(growable: false),
  'idempotencyKey': idempotencyKey,
};