SessionSetupIntentData.fromJson constructor
SessionSetupIntentData.fromJson(
- Object? json
Implementation
factory SessionSetupIntentData.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return SessionSetupIntentData(
description:
map['description'] == null ? null : (map['description'] as String),
metadata: map['metadata'] == null
? null
: (map['metadata'] as Map).cast<String, Object?>().map((
key,
value,
) =>
MapEntry(
key,
(value as String),
)),
onBehalfOf:
map['on_behalf_of'] == null ? null : (map['on_behalf_of'] as String),
);
}