AccountSessionCreateOptions.fromJson constructor

AccountSessionCreateOptions.fromJson(
  1. Object? json
)

Implementation

factory AccountSessionCreateOptions.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return AccountSessionCreateOptions(
    account: (map['account'] as String),
    components: AccountSessionComponents.fromJson(map['components']),
    expand: map['expand'] == null
        ? null
        : (map['expand'] as List<Object?>)
            .map((el) => (el as String))
            .toList(),
  );
}