Location.fromJson constructor

Location.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Location.fromJson(Map<String, dynamic> json) {
  return Location(
    filePath: json['filePath'] as String?,
    filePosition: json['filePosition'] as int?,
    relativeFileVersion:
        (json['relativeFileVersion'] as String?)?.toRelativeFileVersionEnum(),
  );
}