TerminalConnectionTokenCreateOptions.fromJson constructor

TerminalConnectionTokenCreateOptions.fromJson(
  1. Object? json
)

Implementation

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