canImport method

  1. @override
bool canImport(
  1. Object? json
)
override

Returns true when json has the format of this importer.

Implementation

@override
bool canImport(Object? json) =>
    json is Map &&
    json['info'] is Map &&
    json['item'] is List &&
    '${json['info']['schema']}'.contains('schema.getpostman.com');